export function uniqueObj(arr: any[], id: string, strick: boolean = true) {
  if (strick) {
    let uni = new Map<string, any>()
    arr.forEach(it => {
      uni.set(it[id], it)
    })
    return [...uni.values()]
  } else {
    const uni: any = {}
    arr.forEach(it => {
      uni[it.id] = it
    })
    return Object.values(uni)
  }
}